package com.chenyitun.cloudzuul.admin;

import com.chenyitun.cloudcommon.dto.MenuInfo;
import com.chenyitun.cloudcommon.intercepter.FeignIntercepter;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Headers("Content-Type:application/json")
@FeignClient(name = "cloudadmin", configuration = FeignIntercepter.class  )
public interface MenuService {
    @GetMapping("/menu/userMenus")
    List<MenuInfo> userMenus();


}
